<template>
  <div class="claBox">
    <ul class="list">
      <li
        class="minBox"
        @click="$router.push('/detGoods')"
        v-for="(item, index) in $parent.dataNavcla"
        :key="index"
      >
        <img v-lazy="item.imgUrl" alt="" />
        <p>{{ item.name }}</p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.claBox {
  padding-bottom: 14px;
  .list {
    display: flex;
    flex-wrap: wrap;
    li {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 20%;
      // height: 83px;
      padding: 5px 0;
      padding-top: 10px;
    }
  }
  .minBox {
    img {
      width: 40px;
      height: 40px;
    }
    p {
      margin-top: 8px;
      font-size: 12px;
    }
  }
}
</style>
